$(document).ready(function(){
	document.location.href = "#General";
});

$(document).on( 'click','.control', function () {
	document.location.href = "#"+$(this).text();
});

$(document).on( 'click','#requestButton', function () {
	document.location.href = "#"+$("#request").val();
});

$(document).on(	"keypress","#request", function(e) {
    if(e.which == 13) {
    	document.location.href = "#"+$("#request").val();
    }
});

$(window).on('hashchange', function() {
    var hash = (window.location.hash + "").substring(1.3);
    $("#request").val(hash);
    $.get(hash+".html",function(data){
    	$("#helpText").html(data);
    }).fail( function() {
    	$("#helpText").html("No Help Documents Found");
	});
});